# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=cpdb-backend-file
pkgver=2.0b1
pkgrel=1
epoch=
pkgdesc="PDF file Backend for the common print dialog "
arch=('x86_64')
url="https://github.com/OpenPrinting/cpdb-backend-file"
license=('MIT')
depends=('cpdb-libs')
source=($url/releases/download/$pkgver/cpdb-backend-file-$pkgver.tar.gz)
sha256sums=('768ce09a9686e7d58f276ca7ce8eeb8f97d4b51355300a22e2b93ca0c50dc0d0')
#validpgpkeys=()

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
